package com.youmu.shop.role.dao;

import java.util.List;

import com.youmu.shop.base.dao.BaseDao;
import com.youmu.shop.system.bean.Role;

public interface RoleDao extends BaseDao{
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    /**
     * 根据用户id查询角色信息
     * @return
     */
    List<Role> selectRolesByAdminId(Long adminId);
    
    /**
     * 获取所有的角色信息
     * @return
     */
    List<Role> selectAllRoles();
}